<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="db.*" %>
<%@ page import="debug.*" %>
<%
	Message message = (Message)request.getAttribute("message");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link href="css/style.css" rel="stylesheet" type="text/css">
		<title>メッセージ編集</title>
	</head>
	<body>
		<p><%= message.getAccount() %>さん</p>
		<form action="UpdateServlet">
			<input type="hidden" name="id" value="<%= message.getId() %>" />
			<div class="opguide">メッセージを編集してください</div>
			<div>
				<textarea name="message" id="message"><%= message.getMessage() %></textarea>
			</div>
			<div class="opguide">パスワードを入力してください</div>
			<div>
				<input type="password" name="password" id="password" />
			</div>
			<div>
				<input type="checkbox" name="delete_flag" value="delete" />
				<span class="opguide">メッセージを削除</span>
			</div>
			<p>
				<input type="submit" value="更新" />
			</p>
		</form>
	</body>
</html>